import request from '@/utils/request'

export function getEmployeesSimples() {
  return request({
    url: '/sys/user/simple'
  })
}

// 获取员工列表
export function getEmployees(page, size) {
  return request({
    url: '/sys/user',
    params: { page, size }
  })
}

// 新增员工
export function addEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}

// 删除员工
export function delEmployee(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'delete'
  })
}

// 批量添加员工
export function addEmployeeBatch(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
